package com.base.jdk7.file;


import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;

/**
 * 文件操作
 */
public class FileOperateTest {


    public static void fileWrite() throws IOException {
        String content = "test";
        Files.write(Paths.get("./test.txt"), content.getBytes());
    }

    public static void main(String[] args) throws IOException {
        fileWrite();
    }
}
